home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / rkeyboar.cpt / Reactive Keyboard ƒ / help.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-20  |  3.6 KB  |  104 lines

  1. /*______________________________________________________________________
  2.  
  3.     help.h - Help Window Manager Interface.
  4.     
  5.     Copyright ⌐ 1988, 1989, 1990, Northwestern University.
  6. _____________________________________________________________________*/
  7.  
  8.  
  9. #ifndef __help__
  10. #define __help__
  11.  
  12. extern void help_Open (short tag);
  13.  
  14. /* Tags for help system */
  15.  
  16. #define    tagFirstButton    300        /* first button - the other buttons
  17.                                     are assigned tags 301 through 309 */
  18. #define    tagUpperRight    320        /* upper right corner of main window */
  19. #define    tagReport        321        /* report rectangle */
  20. #define    tagMainWind        500        /* main window */
  21. #define    tagHelpWind        501        /* help window */
  22. #define    tagHelpTcon        603        /* help window table of contents */
  23. #define    tagPrefBeep        330        /* prefs beep option */
  24. #define    tagPrefStation    331        /* prefs scanning station option */
  25. #define    tagPrefSave        332        /* prefs saved text file options */
  26. #define    tagPrefNotif    333        /* prefs notification options */
  27. #define    tagAbouWind        503        /* about window */
  28. #define    tagCmdBase        600        /* base for menu commands */
  29. #define    tagCmdMult        20        /* multiplier for menu commands */
  30.  
  31. #define    firstDocID            200        /* first doc STR# rsrc */
  32. #define    tconID                128        /* TCON resource id */
  33. #define    tagID                128        /* TAG resource id */
  34. #define    cellID                128        /* CELL resource id */
  35. #define    lDefID                128        /* LDEF for report module */
  36.  
  37.  
  38. typedef enum WindKind {
  39.     mainWind,                /* main window */
  40.     helpWind,                /* help window */
  41.     prefWind,                /* prefs window */
  42.     abouWind,                /* about window */
  43.     daWind,                    /* da window */
  44. } WindKind;
  45.  
  46. typedef enum EditCmd {
  47.     undoCmd,
  48.     editDummyCmd,    /* the separator line in the Edit menu */
  49.     cutCmd,
  50.     copyCmd,
  51.     pasteCmd,
  52.     clearCmd 
  53. } EditCmd;
  54.  
  55.  
  56. typedef void (*FUpdate)(void);
  57. typedef void (*FActivate)(void);
  58. typedef void (*FDeactivate)(void);
  59. typedef void (*FResume)(void);
  60. typedef void (*FSuspend)(void);
  61. typedef void (*FClick)(Point where, short modifiers);
  62. typedef void (*FHelp)(Point where);
  63. typedef void (*FGrow)(short height, short width);
  64. typedef void (*FZoom)(void);
  65. typedef void (*FKey)(short key, short modifiers);
  66. typedef void (*FClose)(void);
  67. typedef void (*FDisk)(long message);
  68. typedef Boolean (*FSave)(void);
  69. typedef OSErr (*FPageSetup)(void);
  70. typedef OSErr (*FPrint)(Boolean printOne);
  71. typedef void (*FEdit)(EditCmd cmd);
  72. typedef void (*FAdjust)(void);
  73. typedef void (*FPeriodic)(void);
  74. typedef Boolean (*FDialogPre)(short key);
  75. typedef void (*FDialogPost)(short item);
  76.  
  77. typedef struct WindowObject {
  78.     WindKind            windKind;            /* which kind of window */
  79.     Rect                sizeRect;            /* size rectangle */
  80.     FUpdate                update;                /* ptr to update function */
  81.     FActivate            activate;            /* ptr to activate function */
  82.     FDeactivate            deactivate;            /* ptr to deactivate function */
  83.     FResume                resume;                /* ptr to resume function */
  84.     FSuspend            suspend;            /* ptr to suspend function */
  85.     FClick                click;                /* ptr to click function */
  86.     FHelp                help;                /* ptr to help function */
  87.     FGrow                grow;                /* ptr to grow function */
  88.     FZoom                zoom;                /* ptr to zoom function */
  89.     FKey                key;                /* ptr to key function */
  90.     FClose                close;                /* ptr to close function */
  91.     FDisk                disk;                /* ptr to disk inserted function */
  92.     FSave                save;                /* ptr to save function */
  93.     FPageSetup            pageSetup;            /* ptr to page setup function */
  94.     FPrint                print;                /* ptr to print function */
  95.     FEdit                edit;                /* ptr to edit function */
  96.     FAdjust                adjust;                /* ptr to menu adjust function */
  97.     FPeriodic            periodic;            /* ptr to periodic function */
  98.     FDialogPre            dialogPre;            /* ptr to dialog event preprocessor */
  99.     FDialogPost            dialogPost;            /* ptr to dialog event postprocessor */
  100. } WindowObject;
  101.  
  102. #endif
  103.  
  104.